package io.gitee.sfch.chunmi.code.generator.conf;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 模版名
 */
@Getter
@AllArgsConstructor
public enum TemplateNameEnum {

    /**
     * Dao层实体
     */
    Entity("{basePackage}.dao.{moduleName}.entity", "{EntityName}"),

    /**
     * Dao层Mapper
     */
    Mapper("{basePackage}.dao.{moduleName}.mapper", "{EntityName}Mapper"),

    /**
     * 表单到实体的转换器
     */
    Converter("{basePackage}.service.{moduleName}.converter", "{EntityName}Converter"),

    /**
     * 服务
     */
    Service("{basePackage}.service.{moduleName}", "{EntityName}Service"),

    /**
     * 服务实现类
     */
    ServiceImpl("{basePackage}.service.{moduleName}.impl", "{EntityName}ServiceImpl"),

    /**
     * 控制层
     */
    Controller("{basePackage}.controller.{moduleName}", "{EntityName}Controller"),
    ;

    private final String packageTemplate;
    private final String className;

}
